package com.ymatou.messageroute.api.parameter;

import java.util.List;

public class MessageTaskBean {

	String Id;

	public final String getId() {
		return Id;
	}

	public final void setId(String value) {
		Id = value;
	}

	/**
	 * 关联消息ID，用于查询
	 */
	String StrategyId;

	public final String getStrategyId() {
		return StrategyId;
	}

	public final void setStrategyId(String value) {
		StrategyId = value;
	}

	/**
	 * 事件来源系统
	 */
	int EventFromSystemType = 0;

	public final int getEventFromSystemType() {
		return EventFromSystemType;
	}

	public final void setEventFromSystemType(int value) {
		EventFromSystemType = value;
	}

	/**
	 * 事件来源产品线
	 */
	int ProductLine = 0;

	public final int getProductLine() {
		return ProductLine;
	}

	public final void setProductLine(int value) {
		ProductLine = value;
	}

	/**
	 * 用户类型
	 */
	int UserType;

	public final int getUserType() {
		return UserType;
	}

	public final void setUserType(int value) {
		UserType = value;
	}

	/**
	 * 用户ID
	 */
	int UserId;

	public final int getUserId() {
		return UserId;
	}

	public final void setUserId(int value) {
		UserId = value;
	}

	/**
	 * 用户name
	 */
	String UserName;

	public final String getUserName() {
		return UserName;
	}

	public final void setUserId(String value) {
		UserName = value;
	}

	/**
	 * 事件类型
	 */
	String ScenarioType;

	public final String getScenarioType() {
		return ScenarioType;
	}

	public final void setScenarioType(String value) {
		ScenarioType = value;
	}

	/**
	 * 关键信息ID
	 */
	String KeyId;

	public final String getKeyId() {
		return KeyId;
	}

	public final void setKeyId(String value) {
		KeyId = value;
	}

	/**
	 * 消息任务创建时间
	 */
	String CreateTime;

	public final String getCreateTime() {
		return CreateTime;
	}

	public final void setCreateTime(String value) {
		CreateTime = value;
	}

	/**
	 * 消息任务预期执行时间
	 */
	String DueTime;

	public final String getDueTime() {
		return DueTime;
	}

	public final void setDueTime(String value) {
		DueTime = value;
	}

	/**
	 * 执行前需要验证状态
	 */
	String ValideConditionsBeforeExcute;

	public final String getValideConditionsBeforeExcute() {
		return ValideConditionsBeforeExcute;
	}

	public final void setValideConditionsBeforeExcute(String value) {
		ValideConditionsBeforeExcute = value;
	}

	/**
	 * 验证执行结果
	 */
	boolean ValideResult;

	public final boolean getValideResult() {
		return ValideResult;
	}

	public final void setValideResult(boolean value) {
		ValideResult = value;
	}

	/**
	 * 是否尝试重发，如果失败
	 */
	boolean TryNextTimeIfFailed;

	public final boolean getTryNextTimeIfFailed() {
		return TryNextTimeIfFailed;
	}

	public final void setTryNextTimeIfFailed(boolean value) {
		TryNextTimeIfFailed = value;
	}

	/**
	 * 如果失败下次延迟时间发送
	 */
	int DelaySecondsIfFailed;

	public final int getDelaySecondsIfFailed() {
		return DelaySecondsIfFailed;
	}

	public final void setDelaySecondsIfFailed(int value) {
		DelaySecondsIfFailed = value;
	}

	/**
	 * 如果失败尝试次数
	 */
	int TryTimesIfFailed;

	public final int getTryTimesIfFailed() {
		return TryTimesIfFailed;
	}

	public final void setTryTimesIfFailed(int value) {
		TryTimesIfFailed = value;
	}

	/**
	 * 已经尝试次数
	 */
	int TryedTimes;

	public final int getTryedTimes() {
		return TryedTimes;
	}

	public final void setTryedTimes(int value) {
		TryedTimes = value;
	}

	/**
	 * 消息任务中包含的工具任务
	 */
	List<MessageToolTaskBean> MessageToolTasks;

	public final List<MessageToolTaskBean> getMessageToolTasks() {
		return MessageToolTasks;
	}

	public final void setMessageToolTasks(List<MessageToolTaskBean> value) {
		MessageToolTasks = value;
	}

	/**
	 * 是否成功
	 */
	boolean AllSuccess;

	public final boolean getAllSuccess() {
		return AllSuccess;
	}

	public final void setAllSuccess(boolean value) {
		AllSuccess = value;
	}

}
